public class Test {
    public static void main(String[] args) {
        Solution solution = new Solution();
        int[][] grid = new int[][] {{0,6,0},{5,8,7},{0,9,0}};
        solution.getMaximumGold(grid);
    }
}
